﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">


    <!-- Task List Template New-->
    <DataTemplate x:Key="TaskListItemTemplate">
        <Grid Height="60" Margin="5,0,5,0" MinWidth="400" MaxWidth="400" Background="Transparent" Cursor="Hand">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Border Grid.Column="0" Background="{Binding Path=Status.BrushColor}" Width="60" Height="60" >
                <StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center">
                    <Border VerticalAlignment="Center" HorizontalAlignment="Center">
                        <TextBlock FontSize="18" Text="{Binding Path=ActualHours}" Foreground="White"/>
                    </Border>
                    <Border VerticalAlignment="Center" HorizontalAlignment="Center">
                        <TextBlock FontSize="12" Text="Hours" Foreground="White" />
                    </Border>
                </StackPanel>
            </Border>
            <StackPanel Grid.Column="1" VerticalAlignment="Top" Margin="10, 0, 0, 0">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Project:" Foreground="White" Margin="0,0,5,0" />
                    <TextBlock Text="{Binding Path=Project.Name}" TextWrapping="NoWrap" Foreground="Aqua" />
                </StackPanel>

                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Task:" Foreground="White" Margin="0,0,5,0" />
                    <TextBlock Text="{Binding Path=Name}" TextWrapping="NoWrap" Foreground="Aqua" />
                </StackPanel>


                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Status:" TextWrapping="NoWrap" Foreground="White" Margin="0,0,5,0" />
                    <TextBlock Text="{Binding Path=Status.Name}" TextWrapping="NoWrap" Foreground="{Binding Path=Status.BrushColor}" />

                    <TextBlock Text="Due:" TextWrapping="NoWrap" Margin="15,0,5,0" Foreground="White" />
                    <TextBlock Text="{Binding Path=DueDate}"  TextWrapping="NoWrap" Foreground="Aqua" />
                </StackPanel>
            </StackPanel>
        </Grid>
    </DataTemplate>

    <!-- Project List Template -->
    <DataTemplate x:Key="ProjectListItemTemplate">
        <Grid Height="60" Margin="5,0,5,0" MinWidth="400" MaxWidth="400" Background="Transparent" Cursor="Hand">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Border Grid.Column="0" Background="{Binding Path=Status.BrushColor}" Width="60" Height="60" >
                <StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center">
                    <Border VerticalAlignment="Center" HorizontalAlignment="Center">
                        <TextBlock FontSize="18" Text="{Binding Path=ActualHours, StringFormat={}{0:0.0}}" Foreground="White"/>
                    </Border>
                    <Border VerticalAlignment="Center" HorizontalAlignment="Center">
                        <TextBlock FontSize="12" Text="Hours" Foreground="White" />
                    </Border>
                </StackPanel>
            </Border>
            <StackPanel Grid.Column="1" VerticalAlignment="Top" Margin="10, 0, 0, 0">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Project:" Foreground="White" Margin="0,0,5,0" />
                    <TextBlock Text="{Binding Path=Name}" TextWrapping="NoWrap" Foreground="Aqua" />
                </StackPanel>

                <!--<StackPanel Orientation="Horizontal">
                    <TextBlock Text="Task:" Foreground="White" Margin="0,0,5,0" />
                    <TextBlock Text="{Binding Path=Name}" TextWrapping="NoWrap" Foreground="Aqua" />
                </StackPanel>-->
                
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Priority:" TextWrapping="NoWrap" Foreground="White" Margin="0,0,5,0" />
                    <TextBlock Text="{Binding Path=Priority.Name}" TextWrapping="NoWrap"  />
                </StackPanel>


                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Status:" TextWrapping="NoWrap" Foreground="White" Margin="0,0,5,0" />
                    <TextBlock Text="{Binding Path=Status.Name}" TextWrapping="NoWrap" Foreground="{Binding Path=Status.BrushColor}" />

                    <TextBlock Text="Due:" TextWrapping="NoWrap" Margin="15,0,5,0" Foreground="White" />
                    <TextBlock Text="{Binding Path=DueDate, StringFormat={}{0:MM/dd/yyyy}}"  TextWrapping="NoWrap" Foreground="Aqua" />
                </StackPanel>
                
                <!-- Could Put Description ? -->
            </StackPanel>
        </Grid>
    </DataTemplate>


    <!-- Timestamp List Template -->
    <DataTemplate x:Key="TimestampListItemTemplate">
        <Grid Height="60" Margin="5,0,5,0" MinWidth="400" MaxWidth="600">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Border Grid.Column="0"  Width="60" Height="60">
                <Canvas Background="Gray" Width="60" Height="60" >
                    <TextBlock Text="{Binding StampNumber}" FontSize="24" Padding="10" Foreground="White" />
                </Canvas>
            </Border>
            <StackPanel Grid.Column="1" VerticalAlignment="Top" Margin="10,0,0,0">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Start Time:" Foreground="White" />
                    <TextBlock Text="{Binding Path=StartTime, StringFormat={}{0:MM/dd/yyyy hh:mm:ss tt}}" TextWrapping="NoWrap" Margin="10,0,0,0" Foreground="White" />
                </StackPanel>

                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="End Time:" Foreground="White"  />
                    <TextBlock Text="{Binding Path=EndTimeString}"  TextWrapping="NoWrap" Margin="10,0,0,0" Foreground="White" />
                </StackPanel>

                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Hours:" Foreground="White"  />
                    <TextBlock Text="{Binding Hours}" TextWrapping="NoWrap" Margin="10,0,0,0" Foreground="White" />
                </StackPanel>
            </StackPanel>
        </Grid>
    </DataTemplate>
</ResourceDictionary>